Skip to main content

Get Agent Models

Used to retrieve a list of available AI models that can be used for agent configurations.

API Endpoint

PropertyValue
Request MethodGET
Request URLhttps://api.seliseblocks.com/agents/models

Request

Request Example

curl -X GET 'https://api.seliseblocks.com/agents/models' \
-H 'accept: application/json'

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json

Parameters

This endpoint does not require any parameters.

Response

Success Response (200 OK)

Returns an array of available model objects.

[
{
"model_id": "gpt-4-turbo",
"model_name": "GPT-4 Turbo",
"provider": "openai",
"model_type": "chat",
"max_tokens": 128000,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Most capable GPT-4 model with improved performance"
},
{
"model_id": "gpt-3.5-turbo",
"model_name": "GPT-3.5 Turbo",
"provider": "openai",
"model_type": "chat",
"max_tokens": 16385,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Fast and efficient model for most tasks"
},
{
"model_id": "claude-3-opus",
"model_name": "Claude 3 Opus",
"provider": "anthropic",
"model_type": "chat",
"max_tokens": 200000,
"supports_streaming": true,
"supports_function_calling": true,
"description": "Most intelligent Claude model for complex tasks"
}
]

Response Structure

The response is an array of model objects. Each model object may contain the following fields:

FieldTypeDescription
model_idstringUnique identifier for the model.
model_namestringHuman-readable name of the model.
providerstringModel provider (e.g., openai, anthropic, azure).
model_typestringType of model (e.g., chat, completion, embedding).
max_tokensintegerMaximum token limit for the model.
supports_streamingbooleanWhether the model supports streaming responses.
supports_function_callingbooleanWhether the model supports function/tool calling.
descriptionstringBrief description of the model's capabilities.
note

The actual response structure may vary depending on the available models and their configurations. Additional fields may be included based on model-specific features.

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
500Internal Server ErrorServer Error